import service from "../utils/request";
//  列表
export function getSnapshotList(params:any) {
  return service.get(`/snapshots`, {params});
}
// 还原
export function rollbackSnapshot(id:number,data:any) {
  return service.post(`/vm/${id}/rollback-snapshot`,data);
}
// 删
export function deleteSnapshot(ids:any) {
  return service.delete(`/snapshots/${ids}`);
}
// 查
export function getSnapshotDetail(id:string) {
  return service.get(`/snapshots/${id}`);
}
